﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ClsController;

namespace Pro_Care_System
{
    public partial class LeftMenuDisplay : UserControl
    {
        private ClsLogicaNeg logica;

        public LeftMenuDisplay()
        {
            InitializeComponent();
            logica = new ClsLogicaNeg();
        }



        private void VerificaPagActual()
        {
            switch (this.ParentForm.Name)
            {
                case "Menu":
                    btnpatient.Enabled = false;
                    break;
                case "Appointments":
                    btnappointments.Enabled = false;
                    break;
                case "Administration":
                    btnadministration.Enabled = false;
                    break;
            }

        }

        private void btnpatient_Click(object sender, EventArgs e)
        {
            logica.ManejoForm(this.ParentForm, new Menu());
        }

        private void btnappointments_Click(object sender, EventArgs e)
        {
            logica.ManejoForm(this.ParentForm, new Appointments());
        }

        private void btnreports_Click(object sender, EventArgs e)
        {
            //logica.ManejoForm(this.ParentForm, new AddCitas());
        }

        private void btnadministration_Click(object sender, EventArgs e)
        {
            logica.ManejoForm(this.ParentForm, new Administration());
        }

        private void btnmaintenance_Click(object sender, EventArgs e)
        {
            //logica.ManejoForm(this.ParentForm, new AddCitas());
        }

        private void groupBox1_Enter(object sender, EventArgs e)
        {

        }

        private void LeftMenuDisplay_Load(object sender, EventArgs e)
        {
            VerificaPagActual();
        }
    }
}
